package com.bawei.module_home.goods_act.m;

import androidx.lifecycle.LiveData;

import com.bawei.library_base.manager.MyManager;
import com.bawei.library_base.mvvm.BaseModel;
import com.bawei.module_home.goods_act.m.Api;
import com.bawei.module_home.mvp.Goods;

/**
 * @author : zhiyu
 * @date : 2021/12/13
 * @content :
 */
public class SearchGoodsModel extends BaseModel {

    public LiveData<Goods> getGoods(String keyword,String type,int pageno,int pagesize){

        LiveData<Goods> good = MyManager.getInstance().getRetrofit("http://82.156.178.182:8082")
                .create(Api.class)
                .getGood(keyword, type, pageno, pagesize);
        return good;
    }
}
